package com.example.backend.service;

import com.example.backend.entity.Vehicle;

import java.util.List;

public interface VehicleService {
    //增
    Vehicle save(Vehicle vehicle);
    //删
    void delete(Integer id);
    //查
    //整体查询
    List<Vehicle> findAll();
    //单个查询
    List<Vehicle> findById(Integer id); ////按车辆编号查询
    List<Vehicle> findByVehicleCategory(String vehicleCategory); //按车辆类型查询
    List<Vehicle> findByName(String name); //按车辆名称查询
    List<Vehicle> findByBuyDate(String buyDate); //按购入时间查询
    List<Vehicle> findByStatus(String status); //按车辆状态查询
    List<Vehicle> findByRent(Integer rent); //按租金标准查询
    List<Vehicle> findByLicenseNumber(String licenseNumber); //按车牌编号查询
    boolean findName(String name);
    boolean findNameAndId(Integer id,String name);
    //改
    Vehicle update(Vehicle vehicle);
}
